JournalEntry

data class JournalEntry(var id: String = "", var title: String = "", var content: String = "", var createdAt: Date? = null)

Represents a journal entry that contains a title, content, and the date the entry was created.

Constructors

Link copied to clipboard
constructor(id: String = "", title: String = "", content: String = "", createdAt: Date? = null)

Properties

Link copied to clipboard

The content of the journal entry.

Link copied to clipboard
@Serializable(with = DateSerializer::class)
var createdAt: Date?

The date when the journal entry was created.

Link copied to clipboard
var id: String

The unique identifier for the journal entry.

Link copied to clipboard

The title of the journal entry.